﻿using System;
using System.Collections.Generic;
using System.Text;

using HZ.Supervise.IBLL;
using HZ.Supervise.Model;
using HZ.Supervise.DAL;
using System.Data;
using System.Text.RegularExpressions;

namespace HZ.Supervise.BLL
{
    public class BLL_Goods:IBLL_Goods
    {
        public DataTable GetGoodsBySortID(string productName,string _sortId,string _SortSource, int currentpage, int pagesize, out int totalrecord)
        {
            return DAL_Goods.GetGoodsBySortID(productName, _sortId, _SortSource, currentpage, pagesize, out totalrecord);
        }
          /// <summary>
        /// 根据hospitalid查询药品采购目录
        /// </summary>
        /// <param name="hospitalId"></param>
        /// <param name="currentpage"></param>
        /// <param name="pagesize"></param>
        /// <param name="totalrecord"></param>
        /// <returns></returns>
        public DataTable GetGoodsByHospitalId(string productName,string _sortId,string _SortSource,string hospitalId, int currentpage, int pagesize, out int totalrecord) 
        {
            return DAL_Goods.GetGoodsByHospitalId(productName,_sortId, _SortSource,hospitalId, currentpage, pagesize, out totalrecord);
        }
        /// <summary>
        /// 返回月排名
        /// </summary>
        /// <param name="_strmonth1">选择月份</param>
        /// <param name="_strmonth2">上月份</param>
        /// <param name="_strorderby">排序字段</param>
        ///<param name="strwhere">查询条件</param>
        /// <param name="currentpage"></param>
        /// <param name="pagesize"></param>
        /// <param name="totalrecord"></param>
        /// <returns></returns>
		public DataTable GeteGoodsRanking(string Sort, string strwhere, string strwhereLast, string Order, string wherePro, int currentpage, int pagesize, out int totalrecord)//2011-0406 ml 修改查询条件
        {
            return DAL_Goods.GeteGoodsRanking(Sort, strwhere,strwhereLast, Order, wherePro, currentpage, pagesize, out totalrecord);
        }
        /// <summary>
        /// 返回月排名
        /// </summary>
        /// <param name="_strmonth1">选择月份</param>
        /// <param name="_strmonth2">上月份</param>
        /// <param name="_strorderby">排序字段</param>
        ///<param name="strwhere">查询条件</param>
        /// <param name="currentpage"></param>
        /// <param name="pagesize"></param>
        /// <param name="totalrecord"></param>
        /// <returns></returns>
        public DataTable GeteGoodsRankingTime(string _strmonth1, string _strorderby, string strwhere, int currentpage, int pagesize, out int totalrecord)
        {
            return DAL_Goods.GeteGoodsRankingTime(_strmonth1, _strorderby, strwhere, currentpage, pagesize, out totalrecord);
        }
    }
}
